package com.lemon.cloud.exception;

import lombok.Getter;

/**
 * There are only 3 basic ErrorCode:
 * COLA_ERROR
 * BIZ_ERROR
 * SYS_ERROR
 * <p>
 * Created by fulan.zjf on 2017/12/18.
 */
public enum BasicErrorCode {

    BIZ_ERROR("BIZ_ERROR", "通用的业务逻辑错误"),

    SYS_ERROR("SYS_ERROR", "未知的系统错误");

    @Getter
    private String errCode;

    @Getter
    private String errMesssage;

    BasicErrorCode(String errCode, String errMesssage) {
        this.errCode = errCode;
        this.errMesssage = errMesssage;
    }
}
